<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>类小脑计算平台</title>
    <meta name="description" content="类小脑计算平台 - 神经网络建模与仿真平台" />
    
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
        }

        #loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f5f7f9;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            transition: opacity 0.5s ease-out;
        }

        #loading.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .loading-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            border: 1px solid #e5e7eb;
        }

        .spinner {
            width: 56px;
            height: 56px;
            margin: 0 auto 28px;
            border: 3px solid #e5e7eb;
            border-top-color: #2b8a6e;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .loading-text {
            font-size: 18px;
            color: #111827;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .loading-subtext {
            font-size: 14px;
            color: #6b7280;
        }

        #root {
            width: 100%;
            height: 100%;
            min-height: 100vh;
        }
    </style>
</head>
<body>

<!-- 加载界面 -->
<div id="loading">
    <div class="loading-content">
        <div class="spinner"></div>
        <div class="loading-text">正在加载类小脑计算平台...</div>
        <div class="loading-subtext">神经网络建模与仿真平台</div>
    </div>
</div>

<!-- React 应用容器 -->
<div id="root"></div>

<script>
    // 当页面加载完成后，隐藏加载界面
    window.addEventListener('load', function() {
        setTimeout(function() {
            const loading = document.getElementById('loading');
            if (loading) {
                loading.classList.add('hidden');
                // 完全移除加载界面
                setTimeout(function() {
                    loading.style.display = 'none';
                }, 500);
            }
        }, 500);
    });
</script>

</body>
</html>

